package filter;

public abstract class Handler {
	protected String ErrorMessage;
	protected Filter filtOperation;
	
	Handler(Filter filt){
		filtOperation = filt;
	}
	
	public abstract void doCmd(String path) throws Exception;
	
	public abstract void doTips();
	
	protected void cmdError() {
		ErrorMessage = new String("Input Command ERROR.\n"
				+ "input --help to show all the command\n"
				+ "input [-cmd] --help  to see how to use\n");
	}
	
	protected void fileError() {
		ErrorMessage = new String("The file on the path doesn`t exists!\n"
				+ "Check it and retry!\n");
	}
	
 	public void printAuther() {
		System.out.println("Welcome to Filter!\n"
				+ "　　　　/　´・ω・）　　　 \r\n"
				+ "　_, ‐'´　 ＼　 /　`ｰ､_ \r\n"
				+ "/ '￣｀Y´￣｀Y´￣｀レ⌒ヽ \r\n"
				+ "{　､　 ﾉ､　 　 |　　_,,ﾑ,_　ﾉl \r\n"
				+ "'い　ヾ`ー～'´￣__っ八　ﾉ \r\n"
				+ "＼ヽ､　　 ー　／　ー　　〉 \r\n"
				+ "　 ＼｀ヽ-‐'´￣｀冖ｰ-\n"
				+ "@auther : 地表最强信安五组\n");
	}
}
